import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        //生成一副扑克
        //List<Card> cards = new Cards();
        Cards cards = new Cards();
        System.out.println(cards);
        //洗牌
        cards.shuffleCards();
        System.out.println(cards);
        //摸牌
        List<List<Card>> players = new ArrayList<>();
        List<Card> player1 = new ArrayList<>();
        List<Card> player2 = new ArrayList<>();
        List<Card> player3 = new ArrayList<>();
        players.add(player1);
        players.add(player2);
        players.add(player3);
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < 3; j++) {
                Card card = cards.getList().remove(0);
                players.get(j).add(card);
            }
        }

        System.out.println(player1);
        System.out.println(player2);
        System.out.println(player3);
        System.out.println(cards);
    }
}